class CreateProducts < ActiveRecord::Migration
   def self.up
     create_table :products do |t|
       t.string :title
       t.text :description
       t.string :image_url
       t.decimal :price, :precision => 8, :scale => 2

       t.timestamps
     end

     def self.down
       drop_table :products
     end
   end
end